package com.example.userpointmgr.tool;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

public class PageResult<T> {
    @Getter
    @Setter
    private int total; //总记录数
    @Getter
    @Setter
    private List<T> data;//当前页数据

    public PageResult(int total, List<T> data) {
        this.total = total;
        this.data = data;
    }
}
